package top.littlejiang.onlinexam.vo;

import lombok.*;
import top.littlejiang.onlinexam.common.base.BaseTree;

import java.io.Serializable;

/**
 * @author chen
 * @Description
 * @since 2021/2/26 20:33
 */
@Setter
@Getter
public class MenuVO extends BaseTree<MenuVO> {

    /**
     * 图标
     */
    private String icon;

    /**
     * 跳转路径
     */
    private String urlIndex;

    /**
     * 名字
     */
    private String title;

    /**
     * 排序
     */
    private Integer sort;

    public MenuVO(Serializable id, Serializable parentId, String icon, String urlIndex, String title, Integer sort){
        super(id, parentId);
        this.icon = icon;
        this.urlIndex = urlIndex;
        this.title = title;
        this.sort = sort;
    }

    @Override
    public String toString() {
        return super.toString();
    }
}
